package org.ctd.springframework.beans.factory.parsing.extractor.source;

import com.ctd.springframework.core.io.Resource;

/**
 * NullSourceExtractor
 *
 * @author chentudong
 * @date 2020/9/14 10:45
 * @since 1.0
 */
public class NullSourceExtractor implements SourceExtractor {
    /**
     * Extract the source metadata from the candidate object supplied
     * by the configuration parser.
     *
     * @param sourceCandidate  the original source metadata (never {@code null})
     * @param definingResource the resource that defines the given source object
     *                         (may be {@code null})
     * @return the source metadata object to store (may be {@code null})
     */
    @Override
    public Object extractSource(Object sourceCandidate, Resource definingResource) {
        return null;
    }
}
